﻿<Window x:Class="Opds_Viewer.View.InitView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
             xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WPF4" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             WindowStyle="None" ShowInTaskbar="False"
             AllowsTransparency="True" WindowStartupLocation="CenterScreen"
             DataContext="{Binding Init, Mode=OneWay, Source={StaticResource Locator}}" Background="{x:Null}" Width="500" Height="250">
    
        <i:Interaction.Triggers>
            <i:EventTrigger EventName="Loaded">
                <cmd:EventToCommand Command="{Binding Mode=OneWay, Path=StartCommand}" />
            </i:EventTrigger>
        </i:Interaction.Triggers>
    
    <Grid>              
        
        <Border BorderBrush="Black" Background="{DynamicResource MainWindowBackground}" CornerRadius="20" BorderThickness="0" Padding="0" Margin="0,0,5,5">
        	<Border.Effect>
        		<DropShadowEffect Opacity="0.7"/>
        	</Border.Effect>
        </Border>
        <StackPanel Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20,5,0,0">
        	<Grid x:Name="Logo" Background="{DynamicResource MainColorLogo}" Width="200" Height="100"/>
        	<TextBlock Text="{Binding Description}" Margin="0,20,0,0" FontSize="16" />
        </StackPanel>
        
        <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0,0,20,10">
            <TextBlock Text="Created By Fabien Silberstein" />
            <TextBlock Text=" - " />
            <TextBlock Text="Version : " />
            <TextBlock Text="{Binding Version}"/>
        </StackPanel>
        
    </Grid>
</Window>
